package com.keyue.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.keyue.domain.vo.admin.DeptSmallVO;
import com.keyue.domain.vo.admin.JobSmallVO;
import com.keyue.domain.vo.admin.RoleSmallVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Set;


@Data
public class UserVO implements Serializable {

    @ApiModelProperty(hidden = true)
    private Long id;

    private String userName;

    private String nickName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 头像地址
     */
    private String avatarName;

    /**
     * 头像真实路径
     */
    private String avatarPath;

    private Boolean enabled;

    /**
     * 是否可用 10-可用 20-删除 30-禁用
     */
    private Integer enableFlag;

    @JsonIgnore
    private String password;

    private LocalDateTime pwdResetTime;

    @ApiModelProperty(hidden = true)
    private Set<RoleSmallVO> roles;


    @ApiModelProperty(hidden = true)
    private JobSmallVO job;

    private DeptSmallVO dept;

    private Long deptId;

    private LocalDateTime createTime;
}
